﻿using MvcSiteMapProvider.Caching;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CleverCMS.Core.Infrastructure
{
    public class CustomSiteMapCacheKeyToBuilderSetMapper : ISiteMapCacheKeyToBuilderSetMapper
    {
        public virtual string GetBuilderSetName(string cacheKey)
        {
            switch (cacheKey.ToLower())
            {
                case "default":
                    return "defaultSet";

                case "clevercms.admin":
                    return "adminSet";

                default:
                    return "defaultSet";
            }
        }
    }
}